import { View, Image } from '@tarojs/components';
import Taro from '@tarojs/taro';
import React, { Component } from 'react';
import './index.less';
import 'taro-ui/dist/style/components/modal.scss';
import {IPLAND_OSS_HOST} from '../../../constant';

interface INaviProps {
  isOpened: boolean;
  onCancel: Function;
}
export default class MembersLoginDailyModal extends Component<INaviProps, any> {
  constructor(props) {
    super(props);
    this.state = {
    };
  }


  render() {
    let { isOpened } = this.props;

    return (
      isOpened ? <View className="GetContainer">
        <View className="members">
          <Image
            className="close"
            src={`${IPLAND_OSS_HOST}home/close.png`}
            onClick={() =>
              this.props.onCancel()
            }>
          </Image>
          <Image
            className="memberCoin"
            src={`${IPLAND_OSS_HOST}home/memberCoin.png`}
            onClick={() =>
              this.props.onCancel()
            }>
          </Image>
        </View>
      </View> : null
    );
  }
}

//create by moon https://github.com/creasy2010/moon
